package com.example.demo03_mvm;

import android.app.Application;
import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;

import io.rong.imlib.RongCoreClient;
import io.rong.imlib.model.InitOption;

public class App extends Application {
    private static Context context;
    @Override
    public void onCreate() {
        super.onCreate();

        ARouter.openLog();
        ARouter.openDebug();
        ARouter.init(this);
        context=getApplicationContext();

        String appKey = "82hegw5u86rux"; // example: bos9p5rlcm2ba
        InitOption initOption = new InitOption.Builder().build();

        RongCoreClient.init(getApplicationContext(), appKey, initOption);
    }

    public static Context getContext() {
        return context;
    }
}
